home *** CD-ROM | disk | FTP | other *** search
/ Chip 2002 February / CHIPCD_02_2002.iso / Internet / Macromedia ColdFusion Server 5 / coldfusion-50-win-us.exe / data1.cab / Examples / CFDOCS / snippets / lscurrencyformat.cfm < prev    next >
Encoding:
Text File  |  2001-06-13  |  829 b   |  36 lines

  1. <!--- This shows LSCurrencyFormat --->
  2.  
  3. <HTML>
  4.  
  5. <HEAD>
  6. <TITLE>LSCurrencyFormat Example</TITLE>
  7. </HEAD>
  8.  
  9. <BASEFONT FACE="Arial, Helvetica" SIZE=2>
  10. <BODY  bgcolor="#FFFFD5">
  11.  
  12. <H3>LSCurrencyFormat Example</H3>
  13.  
  14. <P>LSCurrencyFormat returns a currency value using
  15. the locale convention.  Default value is "local."
  16.  
  17. <!--- loop through a list of possible locales and
  18. show currency values for 100,000 units --->
  19. <CFLOOP LIST="#Server.Coldfusion.SupportedLocales#"
  20. INDEX="locale" DELIMITERS=",">
  21.     <CFSET oldlocale = SetLocale(locale)>
  22.  
  23.     <CFOUTPUT><P><B><I>#locale#</I></B><BR>
  24.         Local: #LSCurrencyFormat(100000, "local")#<BR>
  25.         International: #LSCurrencyFormat(100000, "international")#<BR>
  26.         None: #LSCurrencyFormat(100000, "none")#<BR>
  27.         <hr noshade>
  28.     </CFOUTPUT>
  29.  
  30. </CFLOOP>
  31.  
  32.  
  33.  
  34. </BODY>
  35. </HTML>       
  36.